package com.example.controller;


import com.example.pojo.ResultBean;
import com.example.service.ISysAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 区域表 前端控制器
 * </p>
 *
 * @author lyj
 * @since 2023-02-20
 */
@RestController
@RequestMapping("/sys-area")
public class SysAreaController {

    @Autowired
    private ISysAreaService sysAreaService;

    /**
     * 查询所有地区信息
     * @return
     */
    @GetMapping("queryAll")
    public ResultBean queryAll(){
        return ResultBean.success(sysAreaService.list());
    }
}
